package com.qinsheng.domain.strategy.service;

import com.qinsheng.domain.strategy.model.valobj.StrategyAwardStockKeyVO;

/**
 * ClassName: IRaffleStock
 * Description: 抽奖库存相关服务，获取库存消耗队列
 *
 * @Author: qinsheng1900
 * @Create 2025/3/4 11:20
 * @Version 1.0
 */
public interface IRaffleStock {

    /**
     * 获取奖品库存消耗队列
     * @return
     * @throws InterruptedException
     */
    StrategyAwardStockKeyVO takeQueueValue() throws InterruptedException;

    /**
     * 更新奖品库存消耗记录
     * @param strategyId
     * @param awardId
     */
    void updateStrategyAwardStock(Long strategyId,Integer awardId);
}
